from urllib.request import *
# result=urlopen('https://fkjava.org/')
# data=result.read(326)
# print(data.decode('utf-8'))


with urlopen('https://fkjava.org/') as f:
    # 按字节读取数据
    data = f.read()
    # 将字节数据恢复成字符串
    print(data.decode('utf-8'))